﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security;

namespace ConfigLibrary
{
	/// <summary>
	/// Configuration file object
	/// </summary>
	public partial class Config
	{
		[Serializable]
		private struct _datahost
		{
			public string hostname;
			public int server_port;
			public int client_port;
		}

		[ObsoleteAttribute]
		[Serializable]
		private struct _mailhost
		{
			public string hostname;
			public string loginaccount;
			public string password;
			public int port;
		}
		
		[Serializable]
		private struct Offsets
		{
			public int Emailhost;
			public int EmailAccount;
			public int EmailPassword;
			public int EmailPort;
			public int SqlHost;
			public int SqlUser;
			public int SqlPassword;
			public int SqlPort;
			public int SqlDatabase;
            public int Eddshost;
            public int EdssPassword;
            public int Qbhost;
            public int QbPassword;
		}

		[Serializable]
		private struct _filemonitor
		{
			public string monitorpath;
			public string writepath;
		}

		[ObsoleteAttribute]
		[Serializable]
		private struct _sqlhost
		{
			public string hostname;
			public string username;
			public string password;
			public int port;
			public string database;
		}

        [Serializable]
        private struct _eddshost
        {
            public string username;
            public string password;
        }

        [Serializable]
        private struct _qbhost
        {
            public string username;
            public string password;
        }
	}
}